package com.wmwj.hxlj.mapper;

import com.wmwj.hxlj.entity.Video;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface VideoMapper {

    /**
     * 插入视频
     * @param video
     * @return
     */
    @Insert("insert into video (user_id, uuid,url,cover,title,author,is_delete) " +
            "values(#{userId},#{uuid},#{url},#{cover},#{title},#{author},#{isDelete})")
    int insert(Video video);
}
